<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><?php echo $this->pageTitle; ?></title>
        <link rel="stylesheet" href="/css/960.css" type="text/css" media="screen"/>
        <link rel="stylesheet" href="/css/reset.css" type="text/css" media="screen"/>
        <link rel="stylesheet" href="/css/text.css" type="text/css" media="screen"/>
        <link rel="stylesheet" href="/css/frontend.css" type="text/css" media="screen"/>
        <link rel="stylesheet" href="/js/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen"/>


        <!-- Default javascripts -->
        <script type="text/javascript" src="/js/cycle.js"></script>
        <script type="text/javascript" src="/js/jwplayer.js"></script>
        <script type="text/javascript" src="/js/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
        <script type="text/javascript" src="/js/modernizr.custom.39037.js"></script>
        <?php Yii::app()->publishAndRegisterScriptFile(Yii::app()->basePath . '/javascripts/frontend.js'); ?>
        <?php if (YII_DEBUG == false): ?>
	        <script type="text/javascript">
				var _gaq = _gaq || [];
				_gaq.push(['_setAccount', 'UA-25139720-1']);
				_gaq.push(['_trackPageview']);

				(function() {
					var ga = document.createElement('script');
					ga.type = 'text/javascript';
					ga.async = true;
					ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
					var s = document.getElementsByTagName('script')[0];
					s.parentNode.insertBefore(ga, s);
				})();
	        </script>
			<!-- Beginning of Asynch Tutorialize Snippet -->
			<script type="text/javascript">
				(function() {
					var tu = document.createElement('script');
					tu.type = 'text/javascript';
					tu.async = true;
					tu.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'dpi1c6z6qg9qf.cloudfront.net/client/v2/tutorialize.js.gz'
					var sc = document.getElementsByTagName('script')[0];
					sc.parentNode.insertBefore(tu, sc);
				})();
				var _t = _t || [];
				_t.push = function() {
					if (typeof window.tutorialize !== 'undefined') {
						window.tutorialize.process(arguments[0]);
					}
					return Array.prototype.push.apply(this, arguments);
				};
				_t.push({publisher_id: '520cee3b4e5fe133b6002f42'});
			</script>
			<!-- End of Tutorialize Snippet -->
		<?php endif; ?>
    </head>
    <body>
        <div id="header" class="bg-white">
            <div class="container_12">
                <div id="logo" class="grid_12 align-center">
                    <a href="/index.php">
                        <img src="/images/home/logo_propsage_full.png" height="80" />
                    </a>
                </div>
            </div>
        </div>
        
        <div id="content-wrapper" class="bg-white">
            <?php if (PsSystemMessage::hasMessages()): ?>
                <div id="system-messages" class="container_12 relative">
                    <?php PsSystemMessage::flash(); ?>
                </div>
            <?php endif; ?>
            <?php echo $content; ?>
        </div>


        <?php $this->renderPartial('apps.home.views.layouts._footer'); ?>
    </body>
</html>
